package com.fdb.efp.flow.service.impl;

import com.fdb.basic.framework.core.base.AbstractFrameworkService;
import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.flow.service.facade.FlowUrlConfigService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service("flowUrlConfigService")
public class FlowUrlConfigServiceImpl  extends AbstractFrameworkService implements FlowUrlConfigService, FrameworkService {
    
    @Value("${flowUrlBase}")
    private String flowUrlBase;
    
    @Value("${flowInitflow}")
    private String flowInitflow;
    
    @Value("${flowAsyncStartEvent}")
    private String flowAsyncStartEvent;
    
    @Value("${flowSyncStartEvent}")
    private String flowSyncStartEvent;
    
    @Value("${flowAsyncContinueEvent}")
    private String flowAsyncContinueEvent;
    
    @Value("${flowSyncContinueEvent}")
    private String flowSyncContinueEvent;
    
    @Value("${flowRestfulSyncStartEvent}")
    private String flowRestfulSyncStartEvent;
    
    @Value("${flowRestfulAsyncStartEvent}")
    private String flowRestfulAsyncStartEvent;
    
    @Value("${flowRestfulAsyncContinueEvent}")
    private String flowRestfulAsyncContinueEvent;
    
    @Value("${flowRestfulSyncContinueEvent}")
    private String flowRestfulSyncContinueEvent;
    
    @Value("${flowQueryPageAprvInfo}")
    private String flowQueryPageAprvInfo;
    
    @Value("${flowWaitDone}")
    private String flowWaitDone;
    
    @Value("${flowHaveDone}")
    private String flowHaveDone;
    
    @Value("${flowEndDone}")
    private String flowEndDone;

    @Override
    public String getInitflowUrl() {
        return flowUrlBase+flowInitflow;
    }

    @Override
    public String getAsyncStartEventUrl() {
        return flowUrlBase+flowAsyncStartEvent;
    }

    @Override
    public String getSyncStartEventUrl() {
        return flowUrlBase+flowSyncStartEvent;
    }

    @Override
    public String getAsyncContinueEventUrl() {
        return flowUrlBase+flowAsyncContinueEvent;
    }

    @Override
    public String getSyncContinueEventUrl() {
        return flowUrlBase+flowSyncContinueEvent;
    }

    @Override
    public String getRestfulSyncStartEventUrl() {
        return flowUrlBase+flowRestfulSyncStartEvent;
    }

    @Override
    public String getRestfulAsyncStartEventUrl() {
        return flowUrlBase+flowRestfulAsyncStartEvent;
    }

    @Override
    public String getRestfulAsyncContinueEventUrl() {
        return flowUrlBase+flowRestfulAsyncContinueEvent;
    }

    @Override
    public String getRestfulSyncContinueEventUrl() {
        return flowUrlBase+flowRestfulSyncContinueEvent;
    }

    @Override
    public String getQueryPageAprvInfoUrl() {
        return flowUrlBase+flowQueryPageAprvInfo;
    }

    @Override
    public String getWaitDoneUrl() {
        return flowUrlBase+flowWaitDone;
    }

    @Override
    public String getHaveDoneUrl() {
        return flowUrlBase+flowHaveDone;
    }

    @Override
    public String getEndDoneUrl() {
        return flowUrlBase+flowEndDone;
    }

}
